/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.knezevic.realestate.service;

import com.knezevic.realestate.RealEstate;
import java.io.Serializable;
import java.util.Collection;
import org.apache.tapestry5.hibernate.annotations.CommitAfter;

/**
 *
 * @author Nemanja
 */
public interface RealEstates {
    @CommitAfter
    RealEstate save(RealEstate realEstate);
    @CommitAfter
    void update(RealEstate realEstate);
    @CommitAfter
    void deleteRealEstate(RealEstate realEstate);
    Collection<RealEstate> retrieve();
    RealEstate retrieve(Serializable id);
}
